package cn.myschool.java79.dao;

import cn.myschool.java79.entity.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
//cn.myschool.java79.dao.SubjectMapper.add
public interface SubjectMapper {
    public List<Subject> findALL();
    public List<Subject> findALL2();
    public int add(Subject s);
    public int update(Subject s);
    public int del(long id);//#{0}
    //查询分页
    public List<Subject> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize);

    public int findTotal();
}
